<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title th:text="${userInfo.name}+'の首页'">首页</title>
    <link href="/css/home/home.css" rel="stylesheet" />
    <link href="/image/title.ico" rel="icon" type="image/x-icon"/>
    <link href="/css/all.css" rel="stylesheet"/>
    <script src="/js/jquery-3.2.js"></script>
    <script src="/js/layer.js"></script>
    <script src="/js/home/home.js"></script>
    <script src="/js/all.js"></script>
</head>

<body>
<header th:include="ui/header :: copy"></header>
<div class="all_content" style="">
    <main>


        <div class="all_stats" th:with="uid=${userInfo.id}">
            <!--<div id="showCritic"></div>-->
            <div class="friends_stats_fix">
                <div class="friends_stats" th:each="o : ${commentary}">
                    <div>
                        <div class="friends_stats_top">
                            <div class="friends_name">
                                <div>
                                    <span th:text="${o.name}" th:value="${o.uid}"
                                          class="friends_username">用户名</span>
                                </div>
                                <!--<br/>-->
                                <span class="friends_time" th:with="publishTime = ${o.createTime}"
                                      th:text="${o.createTime}">时间</span>
                                <br/>
                                <span class="friends_time isPrivate" th:text="${o.isPrivate}==1?'朋友圈':'公共圈'"
                                      th:value="${o.isPrivate}">朋友圈</span>
                            </div>
                            <div class="wsk" style="">
                                <span class="show_action">Ⅲ</span>
                                <div style="" class="show_action_menu" th:if="${o.uid}!=${userInfo.id}">
                                     <span style="" class="action_menu" th:if="${o.isFriend}==1" th:value="${o.uid}"
                                           title="unsubscribe">×取消关注</span>
                                    <span style="" class="action_menu" th:if="${o.isFriend}==0" th:value="${o.uid}"
                                          title="subscribe">●关注</span>
                                </div>
                                <div style="" class="show_action_menu" th:if="${o.uid}==${userInfo.id}">
                                    <span style="" class="action_menu" th:value="${o.getPid()}" title="delcritic">×删除</span>
                                </div>
                            </div>
                        </div>
                        <div class="friends_stats_middle clearfix">
                            <div class="friends_text">
                            <span th:text="${o.critic}">
                            </span>
                            </div>
                            <span class="friends_title" th:text="'-- '+${o.title}">
                        </span>
                        </div>
                        <div class="friends_action">
                            <button th:value="${o.pid}" class="friends_collection_current" th:if="${o.isCollect}==1">
                                ☆收藏
                                <span th:text="${o.collectionCounts}"></span>
                            </button>
                            <button th:value="${o.pid}" class="friends_collection" th:if="${o.isCollect}==0">
                                ☆收藏
                                <span th:text="${o.collectionCounts}"></span>
                            </button>
                            <button th:value="${o.pid}" class="friends_comment" title="1">
                                ◇评论
                                <span th:text="${o.commentCounts}"></span>
                            </button>
                            <button th:value="${o.pid}" class="friends_good_current" th:if="${o.isLike}==1">
                                ♡点赞
                                <span th:text="${o.goodCounts}"></span>
                            </button>
                            <button th:value="${o.pid}" class="friends_good" th:if="${o.isLike}==0">
                                ♡点赞
                                <span th:text="${o.goodCounts}"></span>
                            </button>
                        </div>

                    </div>
                </div>
            </div>

        </div>
    </main>
    <aside th:include="ui/aside :: aside"></aside>
    <div style="clear: both"></div>
</div>
<footer>
    <div>
        <button class="go_to_top" value=""></button>
    </div>
</footer>

</body>
</html>
